package com.my.commonlibrary.database;

import android.util.Log;

import com.my.commonlibrary.database.dao.Person;
import com.my.commonlibrary.database.db.TableConfig;
import com.my.commonlibrary.database.db.TableOperate;

import java.util.ArrayList;

/**
 * Author : Cooper
 * Time : 2016/10/17  17:25
 * Description :
 */

public class DbInit {

    public static void initPerson() {
        Person person1 = new Person("Jim","23","USA");
        Person person2 = new Person("Lucy","25","England");
        Person person3 = new Person("Jack","27","Africa");

        TableOperate tableOperate = new TableOperate();
        tableOperate.insert(TableConfig.TABLE_PERSON,person1);
        tableOperate.insert(TableConfig.TABLE_PERSON,person2);
        tableOperate.insert(TableConfig.TABLE_PERSON,person3);
    }
}
